﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Networking.PlayerConnection.IEditorPlayerConnection
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using UnityEngine.Events;

#nullable disable
namespace UnityEngine.Networking.PlayerConnection
{
  public interface IEditorPlayerConnection
  {
    void Register(Guid messageId, UnityAction<MessageEventArgs> callback);

    void Unregister(Guid messageId, UnityAction<MessageEventArgs> callback);

    void DisconnectAll();

    void RegisterConnection(UnityAction<int> callback);

    void RegisterDisconnection(UnityAction<int> callback);

    void UnregisterConnection(UnityAction<int> callback);

    void UnregisterDisconnection(UnityAction<int> callback);

    void Send(Guid messageId, byte[] data);

    bool TrySend(Guid messageId, byte[] data);
  }
}
